package com.hsy.crm.web.domain.entity;

import com.hsy.crm.web.domain.cm.Validate;

import javax.persistence.Column;
import javax.persistence.Table;

@Table(name = "t_order_account")
public class OrderAccount extends BaseEntity {

    /**
     * 1采购订单2采购退单3进货单4销售订单5销售退单6销货单
     */
    @Validate
    @Column(length = 1)
    private Integer type;

    @Validate
    @Column(length = 20)
    private Long billId;

    @Validate
    @Column(length = 20)
    private Long accountId;

    /**
     * 多账户时 每个账户分摊的金额
     */
    @Validate
    @Column(length = 20)
    private Long amount;

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Long getBillId() {
        return billId;
    }

    public void setBillId(Long billId) {
        this.billId = billId;
    }

    public Long getAccountId() {
        return accountId;
    }

    public void setAccountId(Long accountId) {
        this.accountId = accountId;
    }

    public Long getAmount() {
        return amount;
    }

    public void setAmount(Long amount) {
        this.amount = amount;
    }
}
